//
//  SNHStaticTableViewUserInfo.m
//  Pods
//
//  Created by 陈建蕾 on 2018/6/9.
//

#import "SNHStaticTableViewUserInfo.h"

@interface SNHStaticTableViewUserInfo ()
/** 值存储 */
@property (nonatomic, strong) NSMutableDictionary *params;
@end

@implementation SNHStaticTableViewUserInfo

- (void)setUserInfoValue:(id)value forKey:(NSString *)key {
    if (value && key) {
        [self.params setObject:value forKey:key];
    }
}

- (id)getUserInfoForKey:(NSString *)key {
    if (key) {
        return self.params[key];
    }
    return nil;
}

#pragma mark - Private
- (NSMutableDictionary *)params {
    if (!_params) {
        _params = [NSMutableDictionary dictionary];
    }
    return _params;
}

@end
